namespace TSL.Utility.Json
{
    using System;
    using System.Collections.Generic;
    using System.Collections.Specialized;

    internal class AjaxSettings
    {
        internal Dictionary<Type, IJavaScriptConverter> DeserializableConverters = new Dictionary<Type, IJavaScriptConverter>();
        private bool m_IncludeTypeProperty = false;
        private StringCollection m_OldStyle = new StringCollection();
        internal Dictionary<Type, IJavaScriptConverter> SerializableConverters = new Dictionary<Type, IJavaScriptConverter>();

        internal AjaxSettings()
        {
        }

        internal bool IncludeTypeProperty
        {
            get
            {
                return this.m_IncludeTypeProperty;
            }
            set
            {
                this.m_IncludeTypeProperty = value;
            }
        }

        internal StringCollection OldStyle
        {
            get
            {
                if (!this.m_OldStyle.Contains("renderJsonCompliant"))
                {
                    this.m_OldStyle.Add("renderJsonCompliant");
                }
                return this.m_OldStyle;
            }
            set
            {
                this.m_OldStyle = value;
            }
        }
    }
}

